﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WorkflowCore.Interface;
using WorkflowCore.Models;

namespace Workflow2211A.Consol.Steps
{
    public class TaskA : StepBody
    {
        public override ExecutionResult Run(IStepExecutionContext context)
        {
            Console.WriteLine("执行任务A");
            return ExecutionResult.Next();
        }
    }
    public class TaskB : StepBody
    {
        public override ExecutionResult Run(IStepExecutionContext context)
        {
            Console.WriteLine("执行任务B");
            return ExecutionResult.Next();
        }
    }
    public class TaskC : StepBody
    {
        public override ExecutionResult Run(IStepExecutionContext context)
        {
            Console.WriteLine("执行任务C");
            return ExecutionResult.Next();
        }
    }
    public class TaskD : StepBody
    {
        public override ExecutionResult Run(IStepExecutionContext context)
        {
            Console.WriteLine("执行任务D");
            return ExecutionResult.Next();
        }
    }
}
